SftTree/NET 2.0

Add Method, ItemClass Class

Softel vdm, Inc.

Adds a new dependent to the current item. The new item is added as the last dependent.

Syntax      ItemClass Class (Softelvdm.SftTreeNET)

VB   

Public Function Add() As ItemClass
Public Function Add( ByVal CellText As String ) As ItemClass
Public Function Add( ByVal CellTexts As String() ) As ItemClass

C#   

public ItemClass Add();
public ItemClass Add( string CellText );
public ItemClass Add( string[] CellTexts );

C++   

public: ItemClass^ Add();
public: ItemClass^ Add( String^ CellText );
public: ItemClass^ Add( array<String^>^ CellTexts );

CellText

Defines a string added as cell text to the item's first cell.

CellTexts

Defines an array of strings added as cell text to the item's cells.

Return Value

The new item.

Comments

The Add method adds a new dependent to the current item. The new item is added as the last dependent.

The strings defined by CellTexts are added to the cells of the new item. Each cell of the new item receives one string as a part (TextPartClass). An application can add additional parts to the cells.

The string defined by CellText is added to the first cell of the new item. The cell receives the string as a part (TextPartClass). An application can add additional parts to the cells.


Feedback / comments / error reports for this topic
© 2007 - Softel vdm, Inc. - www.softelvdm.com